const Service = require('egg').Service;

class RoleService extends Service {
  // 获取角色数据
  async getRole() {
    try {
      let roleList = await this.app.model.Role.findAll();
      return roleList;
    } catch (error) {
      return false;
    }
  }
}

module.exports = RoleService;
